﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Micro.Core.ApiConsumer;

namespace ApiConsumer.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            Stopwatch stopwatch = new Stopwatch();
            stopwatch.Start();
            UserApi userApi = Micro.Core.ApiConsumer.ApiConsumer.Create<UserApi>();
            for (int i = 0; i < 1000; i++)
            {
                Console.WriteLine(userApi.SayHello());
                //Console.WriteLine(userApi.SayGood(5));
                //var data = new
                //{
                //    name = "11111",
                //    code = "22222"
                //};
                //Console.WriteLine(userApi.SayGood1(5, data));
            }
            stopwatch.Stop();
            Console.WriteLine(stopwatch.ElapsedMilliseconds);
            Console.ReadKey();
        }
    }
}
